@{
    ViewBag.Title = "综合权限管理系统";
}
@section head{
    <script src="@Url.Content("~/Content/JavaScript/Cookies.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/JavaScript/json2.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/JavaScript/Home.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/Images/UploadIcons/icons.css")" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        var ChatView= @ViewBag.ChatView.ToString().ToLower();
        $(document).ready(function () {
            AddTab('我的桌面', '@Url.Action("Desktop")', false, 'icon-desktop');
            @if (ViewBag.WebSites.Count > 0)
            {@Html.Raw("ChangeWebSite('" + ViewBag.WebSites[0].Code + "','" + ViewBag.WebSites[0].Name + "');")};
        });

    </script>
}
@section body{
<body  class="homebody">
<div class="easyui-layout home" fit="true"> 
   <div region="north" class="header"  border="false">
       <img class="head_logo" src="../../Content/Images/logo.png" />
       <div class="head_nav">
            @foreach (OA.Model.WebSite i in ViewBag.WebSites)
            {
              <div class="nav_item" onclick="ChangeWebSite('@i.Code','@i.Name')">
                <img src="@(i.IconCls ?? "/Content/Images/UploadIcons/website.png")" />
                 <div>@i.Name</div>
              </div>
            }
       </div>
       <div class="rightinfo">
          <div class="logininfo">
             <a href="javascript:chgdata('@Url.Action("ChangeData", "Personal")')">
                @(OA.BLL.LoginUser.LoginManager.RealName + "(" + OA.BLL.LoginUser.LoginManager.UserName + ")") 欢迎您！
             </a>
          </div>
          <div class="info_tool">
              <a href="javascript:chgpwd('@Url.Action("ChangePassword", "Personal")')">修改密码</a>
              <a href="@Url.Action("Login")">切换用户</a>
              <a href="@Url.Action("LoginOut")">退出登陆</a>
          </div>
       </div>
    </div>  
    <div region="west" title="导航菜单" iconCls="icon-menu" split="true" style="width:180px; " border="true" >
        <ul class="easyui-tree" id="menu" data-options="onClick:menuItemClick">  
        </ul>  
    </div>  
    <div region="center" border="true">
         <div id="tab" class="easyui-tabs" data-options="border:false,fit:true,tools:'#tab-tools'"></div>
		 <div id="tab-tools">
		     <a href="javascript:ReloadCurrentPage()" class="easyui-linkbutton" data-options="title:'刷新当前页',plain:true,iconCls:'icon-reload'"></a>
             <a href="javascript:OpenPageInNewWindow()" class="easyui-linkbutton" data-options="title:'在独立的窗口中打开当前页',plain:true,iconCls:'icon-innewwindow'"></a>
		     <a href="javascript:CloseAllTable()" class="easyui-linkbutton" data-options="title:'关闭所有可关闭页面',plain:true,iconCls:'icon-cancel'"></a>
	     </div>
    </div>  
    <div region="south" class="footer"  style="height:31px;" border="false">
       <div class="copyright left">Copyright 2009 - 2013. www.xxx.com. All Rights Reserved.</div>
       <div class="chat_content right">
           @if (ViewBag.ChatView)
           {
           <a href="javascript:ShowManagerList('@Url.Action("ChatWindow", "Chat")')"  class="easyui-linkbutton" style="width:80px;" data-options="iconCls:'icon-chat',plain:true">消息</a>
           }
       </div>
    </div>
</div>
</body>
}